package com.bbh.data.ui.controller;

import com.bbh.data.service.api.UserVo;
import com.bbh.data.ui.service.UserHystrixService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by roman_000 on 2016/5/27.
 */
@RestController
@RequestMapping("/user")
public class UIController {
    @Autowired
    private UserHystrixService userHystrixService;

    @RequestMapping("/save")
    public List<UserVo> save() {
        return userHystrixService.save();
    }
}
